package com.ksu.projectGeneratorWeb.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 控制器父类
 * 
 * @author jinliang jinliang@lingqianpay.com 2013-12-24
 *
 */
public class BaseController {
	/**
	 * 直接输出内容
	 * 
	 * @param request
	 * @param response
	 * @param result
	 */
	public void output(HttpServletRequest request, HttpServletResponse response, String result) {
		response.setContentType("text/html; charset=utf-8");
		PrintWriter out;
		try {
			out = response.getWriter();
			out.println(result);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
